package com.hmz.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 旅客表
 * @author hmz
 * @version v1.0
 * @data 2020/09/14
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Passengers {
    private Integer id;
    private String name;
    private String sex;
    private Date birthday;

    /**
     * 映射一对一关系
     * 护照信息
     */
    private Passports passports;

    @Override
    public String toString() {
        return "Passengers{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
